

package cn.shengchao.examstar.member.infrastructure.dao;

import cn.shengchao.base.anotation.DistributeDataPermission;
import cn.shengchao.base.enums.DistributeDataScopeEnum;
import cn.shengchao.examstar.rpc.student.req.StudentQueryPage;
import cn.shengchao.examstar.rpc.student.res.StudentList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentDao {
    @DistributeDataPermission(dataScope = DistributeDataScopeEnum.SALE_INVITE_USER, distributeType = "2", inviteTableAlias="invite")
    List<StudentList> getStudentList(@Param("query") StudentQueryPage studentQueryPage);

    void changeStatus(@Param("studentId") Long studentId);
}
